//
//  OrderSubCell.h
//  NewPro
//
//  Created by RYX on 2018/10/11.
//  Copyright © 2018年 何荧红. All rights reserved.
//

#import <UIKit/UIKit.h>
@class OrderCenterModel;

@protocol OrderSubCellDelegate <NSObject>

@optional

- (void)onCancleBtnWithIndexPath:(NSIndexPath *)indexPath;
- (void)onPayBtnWithIndexPath:(NSIndexPath *)indexPath;
- (void)onReceiveGoodsBtnWithIndexPath:(NSIndexPath *)indexPath;
- (void)onLookWuLiuBtnWithIndexPath:(NSIndexPath *)indexPath;
- (void)onLookOrderDetailBtnWithIndexPath:(NSIndexPath *)indexPath;

@end

@interface OrderSubCell : UITableViewCell

@property (nonatomic,weak) id<OrderSubCellDelegate> delegate;

@property (assign, nonatomic) NSInteger type;

@property (weak, nonatomic) IBOutlet UILabel *statueLa;
@property (weak, nonatomic) IBOutlet UIImageView *iconIm;
@property (weak, nonatomic) IBOutlet UILabel *titleLa;
@property (weak, nonatomic) IBOutlet UILabel *priceLa;
@property (weak, nonatomic) IBOutlet UILabel *desLa;
@property (weak, nonatomic) IBOutlet UILabel *numLa;

@property (weak, nonatomic) IBOutlet UIButton *cancleBtn;
@property (weak, nonatomic) IBOutlet UIButton *payBtn;
@property (weak, nonatomic) IBOutlet UIButton *receiveGoodsBtn;
@property (weak, nonatomic) IBOutlet UIButton *lookWuliuBtn;
@property (weak, nonatomic) IBOutlet UIButton *lookOrderDetailBtn;
@property (weak, nonatomic) IBOutlet UILabel *timeLa;

+ (instancetype)tempWithTableView:(UITableView *)tableView;

+ (CGFloat)getHeight;

+ (instancetype)cell;

- (void)setAlphaWithType:(NSInteger)type;

@property (nonatomic,strong) OrderCenterModel *model;

@property (nonatomic,strong) NSIndexPath *indexPath;

@end


